home *** CD-ROM | disk | FTP | other *** search
/ Hackers Underworld 2: Forbidden Knowledge / Hackers Underworld 2: Forbidden Knowledge.iso / HACKING / VAX_6.TXT < prev    next >
Text File  |  1994-07-17  |  4KB  |  87 lines

  1.  
  2. Subject:   What's Hacking VAX Special - 6
  3. From:      David Lightman (Level 30) [A dude who wanted access]
  4. To:        ALL
  5. Sent:      3/1/90 at 2:58 pm
  6.  
  7.  
  8.  
  9.         SET DEFAULT (or... MOVING AROUND A VAX):
  10.         =======================================
  11.  
  12.            To move around the VAX DCL, in and out of directories, I  need
  13.         to  tell you about the SET DEFAULT command.  It is just like  the
  14.         CD command on UNIX and MS-DOS/PC-DOS, except it follows a format.
  15.         The format is "SET DEFAULT [.subdir]" to go down to a sub  direc-
  16.         tory and "SET DEFAULT [-]" to go to the parent directory.  I will
  17.         explain more involved uses like changing disks, if asked, to keep
  18.         you  out of trouble for now.  First, I will show by  example  and
  19.         then explain my example to those out there who lack a brain.
  20.  
  21.         $ DIR                                                 (step 1)
  22.         PROGRAM.EXE;2   PROGRAM.EXE;1
  23.         $ CREATE/DIR example                                  (step 2)
  24.         $ DIR                                                 (step 3)
  25.         EXAMPLE.DIR;1   PROGRAM.EXE;2   PROGRAM.EXE;1
  26.         $ SET DEFAULT [.example]                              (step 4)
  27.         $ DIR                                                 (step 5)
  28.         no files, animals, vegetables, nor minerals error
  29.         $ SET DEF [-]                                         (step 6)
  30.         $ COPY PROGRAM.EXE;2 [.example]                       (step 7)
  31.         $ SET DEF [.example]                                  (step 8)
  32.         $ DIR                                                 (step 9)
  33.         PROGRAM.EXE;2
  34.         $
  35.  
  36.         Here's what I did...
  37.  
  38.            STEP 1:  I asked to see the contents of the current directory.
  39.                     I  found that I have the program PROGRAM.EXE  is  the
  40.                     1st and 2st versions in the directory.
  41.  
  42.            STEP 2:  I  created a  directory called "EXAMPLE."  This  name
  43.                     can be anything of course.
  44.  
  45.            STEP 3:  I again asked for the contents of the directory.   It
  46.                     now   shows   me  that  I  have   a   "file"   called
  47.                     "EXAMPLE.DIR;1."   That is just the directory.   Any-
  48.                     thing with an extension of "DIR" will be a directory.
  49.                     For more on extensions, see below.
  50.  
  51.            STEP 4:  I  changed directories  by use  of  the  SET  DEFAULT
  52.                     command.   You  must  always follow  this  format  to
  53.                     change into a SUB directory.
  54.  
  55.            STEP 5:  I AGAIN (!) looked into the directory.  This time, my
  56.                     directory  was  EXAMPLE so I of course  saw  nothing.
  57.                     You  will get an error I believe when you try to  DIR
  58.                     an empty directory.
  59.  
  60.            STEP 6:  This command is used to rise up to the parent  direc-
  61.                     tory.   The  parent directory contains  the  filename
  62.                     "EXAMPLE.DIR;1," remember?  The DEFAULT option can be
  63.                     shortened to DEF.
  64.  
  65.            STEP 7:  Here I am illustrating how to move programs around  a
  66.                     little.  I just copied the program PROGRAM.EXE;2 into
  67.                     the subdirectory EXAMPLE.
  68.  
  69.            STEP 8:  See step 3.   (a lazy, tired Dave)
  70.  
  71.            STEP 9:  I  >ONCE MORE<  issued the DIR command to  reveal the
  72.                     contents  of the directory.  I now find  the  program
  73.                     PROGRAM.EXE;2  in  my  directory listing  of  my  sub
  74.                     directory EXAMPLE.
  75.  
  76.            If  you don't understand the basics of moving around a VAX  by
  77.         now, push "OFF".
  78.  
  79.  
  80.  
  81. Enter item#, Scan, Quit, ?=Menu
  82.  
  83. VAX>
  84.  
  85. Downloaded From P-80 Systems 304-744-2253
  86.  
  87.